import Service from "@/service"

//获取供应商数据
export function getSupplierListApi(params: any) {
    return Service.get('/api/supplier/getList', {params})
}

//获取所有供应商数据
export function getAllSupplierApi() {
    return Service.get('/api/supplier/getAllSupplierApi')
}

//添加供应商数据
export function insertSupplier(params: any) {
    return Service.post('/api/supplier/insert', params)
}

//修改供应商数据
export function updateSupplier(params: any) {
    return Service.post('/api/supplier/update', params)
}

//获取供应商联系人信息
export function getSupplierContactById(params: any) {
    return Service.get('/api/supplier/getContactById', {params})
}

//获取供应商品牌信息
export function getSupplierBrandById(params: any) {
    return Service.get('/api/supplier/getBrandById', {params})
}

//删除供应商
export function delSupplier(id: any) {
    return Service.delete('/api/supplier/del/' + id)
}
